﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace SiteCredivale
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");




            routes.MapRoute(
               name: "Conteudo diversos",
               url: "Conteudo/",
               defaults: new { controller = "Conteudo", action = "index", id = UrlParameter.Optional });

            routes.MapRoute(
               name: "Contato",
               url: "Conteudo/Contato",
               defaults: new { controller = "Conteudo", action = "Contato" }
               );

            routes.MapRoute(
              name: "Cotação de seguros",
              url: "Conteudo/Seguros",
              defaults: new { controller = "Conteudo", action = "Seguros" }
              );


            routes.MapRoute(
             name: "Default",
             url: "{controller}/{action}/{id}",
             defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
             );


          //  routes.MapRoute(
          //name: "Default",
          //url: "",
          //defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }

      //);



        }
    }
}